package com.lechicanh.cgrid.ke.handler.registry;

import java.util.ArrayList;
import java.util.List;

public class WorkerRegistryImpl implements WorkerRegistry  {
	protected List<String> m_workerList = new ArrayList<String>();
	@Override
	public synchronized void register(String identifier) {
		m_workerList.add(identifier);
	}
	@Override
	public List<String> getWorkers(){
		return m_workerList;
	}
	@Override
	public Boolean isRegistered(String identifier){
		return m_workerList.contains(identifier);
	}
}
